package com.wanmait.cookbook.vo;

import java.sql.Timestamp;
import java.util.ArrayList;

/*
 * ��Ʒ���۱�
 */
public class WorksComment {
	private Integer id;
	private Works works;//��Ʒ��Ϣ
	private Userinfo userinfo;//��Ʒ�û���Ϣ
	private Userinfo parentComment;//���������û���Ϣ
	private String content;//��������
	private Timestamp inputTime;//����ʱ��
	private Boolean news;//��Ϣ֪ͨ��1�Ѷ�/0δ����
	private Boolean enable;//��Ч��1��Ч/0��Ч��
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Works getWorks() {
		return works;
	}
	public void setWorks(Works works) {
		this.works = works;
	}
	public Userinfo getUserinfo() {
		return userinfo;
	}
	public void setUserinfo(Userinfo userinfo) {
		this.userinfo = userinfo;
	}
	public Userinfo getParentComment() {
		return parentComment;
	}
	public void setParentComment(Userinfo parentComment) {
		this.parentComment = parentComment;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Timestamp getInputTime() {
		return inputTime;
	}
	public void setInputTime(Timestamp inputTime) {
		this.inputTime = inputTime;
	}
	public Boolean getNews() {
		return news;
	}
	public void setNews(Boolean news) {
		this.news = news;
	}
	public Boolean getEnable() {
		return enable;
	}
	public void setEnable(Boolean enable) {
		this.enable = enable;
	}
	
	private WorksComment parent; //上一级评论
	private ArrayList<WorksComment> children; // 存放该评论的所有子评论
	public WorksComment getParent() {
		return parent;
	}
	public void setParent(WorksComment parent) {
		this.parent = parent;
	}
	public ArrayList<WorksComment> getChildren() {
		return children;
	}
	public void setChildren(ArrayList<WorksComment> children) {
		this.children = children;
	}
	
	
}
